package asf.transitions
{
	import asf.interfaces.ITransition;
	import asf.utils.FX;
	import asf.views.View;

	public class SampleTransitionOut implements ITransition
	{
		public function SampleTransitionOut( )
		{
		}
		
		public function start(p_transition:Transition):void
		{
			var curr:View;
			
			p_transition.notifyStart( );
			
			if( p_transition.hasCurrentView )
			{
				curr = p_transition.currentView;
				FX.fadeOut( curr ).queue( p_transition.notifyComplete );
			}
			else
			{
				p_transition.notifyComplete( );
			}
		}
		
		public function dispose():void
		{
		}
		
	}
}